package com.guan.ordering_sys.generator.service.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guan.ordering_sys.generator.entity.BusinessModel;
import com.guan.ordering_sys.generator.mapper.BusinessModelMapper;
import com.guan.ordering_sys.generator.service.BusinessModelService;
import com.guan.ordering_sys.vo.BusinessModelVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 林煜岚
 * @since 2021-06-23
 */
@Service
public class BusinessModelServiceImpl extends ServiceImpl<BusinessModelMapper, BusinessModel> implements BusinessModelService {

    @Autowired
    BusinessModelMapper businessModelMapper;

    @Override
    public IPage<BusinessModelVo> getBusinessModel(Page<BusinessModelVo> businessModelVoPage) {
        IPage<BusinessModelVo> businessModelVoIPage = businessModelMapper.getBusinessModelList(businessModelVoPage);
        return businessModelVoIPage;
    }

}
